﻿using Abp.Application.Services;
using Abp.Application.Services.Dto;
using DM.Tests.Dtos;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace DM.Tests
{
    public interface ITestAppService : IApplicationService
    {
        //分页查询
        Task<PagedResultDto<TestListDto>> GetPagedTestsAsync(GetTestInput input);

        //id查询
        Task<TestListDto> GetTestByIdAsync(NullableIdDto<int> input);

        Task<GetTestForEditOutput> GetTestForEditAsync(NullableIdDto<int> input);

        //增或改
        Task CreateOrUpdateTestAsync(CreateOrUpdateTestInput input);

        //删除
        Task DeleteTestByIdAsync(EntityDto<int> inputDto);
    }
}
